package com.ruoyi.peoplegroup.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 科研人员信息对象 researcherinfo
 * 
 * @author gw
 * @date 2025-01-08
 */
public class Researcherinfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键，科研人员ID */
    private Long researcherId;

    /** 科研人员姓名 */
    @Excel(name = "科研人员姓名")
    private String researcherName;

    /** 科研人员类型ID（弱关联） */
    @Excel(name = "科研人员类型ID", readConverterExp = "弱=关联")
    private Long researcherTypeId;

    /** 科研人员职称 */
    @Excel(name = "科研人员职称")
    private String title;

    /** 科研人员邮箱 */
    @Excel(name = "科研人员邮箱")
    private String email;

    /** 科研人员电话 */
    @Excel(name = "科研人员电话")
    private String phone;

    /** 科研人员照片URL或文件路径 */
    @Excel(name = "科研人员照片URL或文件路径")
    private String photoUrl;

    /** 科研人员所属合作单位ID（弱关联） */
    @Excel(name = "科研人员所属合作单位ID", readConverterExp = "弱=关联")
    private Long partnerId;


    @Excel(name = "合作单位名称")
    private String unitName;

    public String getUnitName() {
        return unitName;
    }

    public void setUnitName(String unitName) {
        this.unitName = unitName;
    }

    /** 删除标记：0-未删除，1-已删除 */
    @Excel(name = "删除标记：0-未删除，1-已删除")
    private Integer isDeleted;

    /** 记录创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 记录创建人 */
    @Excel(name = "记录创建人")
    private String createdBy;

    /** 记录更新人 */
    @Excel(name = "记录更新人")
    private String updatedBy;

    /** 记录删除人 */
    @Excel(name = "记录删除人")
    private String deletedBy;

    /** 记录删除时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录删除时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deletedAt;

    @Excel(name = "科研人员类型名称")
    private String typeName;

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public void setResearcherId(Long researcherId)
    {
        this.researcherId = researcherId;
    }

    public Long getResearcherId() 
    {
        return researcherId;
    }
    public void setResearcherName(String researcherName) 
    {
        this.researcherName = researcherName;
    }

    public String getResearcherName() 
    {
        return researcherName;
    }

    public Long getResearcherTypeId() {
        return researcherTypeId;
    }

    public void setResearcherTypeId(Long researcherTypeId) {
        this.researcherTypeId = researcherTypeId;
    }

    public void setTitle(String title)
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }

    public String getPhotoUrl() 
    {
        return photoUrl;
    }
    public void setPartnerId(Long partnerId) 
    {
        this.partnerId = partnerId;
    }

    public Long getPartnerId() 
    {
        return partnerId;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setUpdatedBy(String updatedBy) 
    {
        this.updatedBy = updatedBy;
    }

    public String getUpdatedBy() 
    {
        return updatedBy;
    }
    public void setDeletedBy(String deletedBy) 
    {
        this.deletedBy = deletedBy;
    }

    public String getDeletedBy() 
    {
        return deletedBy;
    }
    public void setDeletedAt(Date deletedAt) 
    {
        this.deletedAt = deletedAt;
    }

    public Date getDeletedAt() 
    {
        return deletedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("researcherId", getResearcherId())
            .append("researcherName", getResearcherName())
            .append("researcherTypeId", getResearcherTypeId())
            .append("title", getTitle())
            .append("email", getEmail())
            .append("phone", getPhone())
            .append("photoUrl", getPhotoUrl())
            .append("partnerId", getPartnerId())
            .append("isDeleted", getIsDeleted())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("createdBy", getCreatedBy())
            .append("updatedBy", getUpdatedBy())
            .append("deletedBy", getDeletedBy())
            .append("deletedAt", getDeletedAt())
            .toString();
    }
}
